import pandas as pd


def MA(S, N: int) -> pd.Series:
    # 求序列的N日简单移动平均值，返回序列
    return pd.Series(S).rolling(N).mean()
